package com.ruoyi.stuinfo.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.stuinfo.mapper.StuRewardsMapper;
import com.ruoyi.stuinfo.domain.StuRewards;
import com.ruoyi.stuinfo.service.IStuRewardsService;

/**
 * 获奖查询Service业务层处理
 *
 * @author zc
 * @date 2025-05-18
 */
@Service
public class StuRewardsServiceImpl implements IStuRewardsService
{
    @Autowired
    private StuRewardsMapper stuRewardsMapper;

    /**
     * 查询获奖查询
     *
     * @param rewardId 获奖查询主键
     * @return 获奖查询
     */
    @Override
    public StuRewards selectStuRewardsByRewardId(Long rewardId)
    {
        return stuRewardsMapper.selectStuRewardsByRewardId(rewardId);
    }

    /**
     * 查询获奖查询列表
     *
     * @param stuRewards 获奖查询
     * @return 获奖查询
     */
    @Override
    public List<StuRewards> selectStuRewardsList(StuRewards stuRewards)
    {
        return stuRewardsMapper.selectStuRewardsList(stuRewards);
    }

    /**
     * 新增获奖查询
     *
     * @param stuRewards 获奖查询
     * @return 结果
     */
    @Override
    public int insertStuRewards(StuRewards stuRewards)
    {
        return stuRewardsMapper.insertStuRewards(stuRewards);
    }

    /**
     * 修改获奖查询
     *
     * @param stuRewards 获奖查询
     * @return 结果
     */
    @Override
    public int updateStuRewards(StuRewards stuRewards)
    {
        return stuRewardsMapper.updateStuRewards(stuRewards);
    }

    /**
     * 批量删除获奖查询
     *
     * @param rewardIds 需要删除的获奖查询主键
     * @return 结果
     */
    @Override
    public int deleteStuRewardsByRewardIds(Long[] rewardIds)
    {
        return stuRewardsMapper.deleteStuRewardsByRewardIds(rewardIds);
    }

    /**
     * 删除获奖查询信息
     *
     * @param rewardId 获奖查询主键
     * @return 结果
     */
    @Override
    public int deleteStuRewardsByRewardId(Long rewardId)
    {
        return stuRewardsMapper.deleteStuRewardsByRewardId(rewardId);
    }

    public List<StuRewards> selectStuRewardsList_handteacher(String teacherId)
    {
        return stuRewardsMapper.selectStuRewardsList_handteacher(teacherId);
    }

    @Override
    public List<StuRewards> selectStuRewardsList_Xiteacher(String teacherId) {
        return stuRewardsMapper.selectStuRewardsList_Xiteacher(teacherId);
    }

    @Override
    public int insertStuRewardss(List<StuRewards> stuRewards) {
        return stuRewardsMapper.insertStuRewardss(stuRewards);
    }
}
